import plotly_express as px

gap = px.data.gapminder().query("year == 2002")
print(gap.head())

fig = px.scatter(
    gap,
    x="gdpPercap",  # x轴
    y="lifeExp",    # y轴
    color="continent",  # 颜色参数
    size="pop",     # 点大小
    size_max=60,    # 点的最大值
)
fig.show()
